package _15_generics._15_7;

/**
 * 泛型的边界
 */
public class _03_Manipulation {
    public static void main(String[] args) {
        HasF hf = new HasF();
        Manipulator<HasF> manipulator =
                new Manipulator<HasF>(hf);
        manipulator.manipulate();
    }
}

class Manipulator<T> {
    T obj;

    public Manipulator(T x) {
        this.obj = x;
    }
    //Error: cannot find symbol: method f():
    public void manipulate() {
       // obj.f();
    }
}
